/*
 * This file is part of Annuaire.
 *
 * Annuaire is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Annuaire is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Annuaire.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.miage.annuaire.bean;

import com.opensymphony.xwork2.ActionSupport;

/**
 * Ce bean est chargé de s'occuper du changement de Locale de l'application.
 * @author guhumber
 */
public class LocalizationBean extends ActionSupport{

	/**
	 * Constructeur vide par défaut.
	 */
	public LocalizationBean() {
		// Rien.
	}
	
	/**
	 * Ne fait rien de spécial pour l'instant.
	 */
	@Override
	public String execute() {
		return SUCCESS;
	}
	
	/**
	 * Accesseur en lecture sur l'attribut 'currentPage'.
	 * @return La page en cours avant le changement de Locale.
	 */
	public String getCurrentPage() {
		return this.currentPage;
	}

	/**
	 * Accesseur en écriture sur l'attribut 'currentPage'.
	 * @param currentPage La page en cours avant le changement de Locale.
	 */
	public void setCurrentPage(String currentPage) {
		this.currentPage = currentPage;
	}

	/**
	 * La page en cours avant le changement de Locale.
	 */
	private String currentPage = null;
	
	/**
	 * L'identifiant de sérialisation.
	 */
	private static final long serialVersionUID = 1L;
	
}
